package tfd.scala.squib.event;

import javax.swing.JSlider
import javax.swing.event._

object sliderValueChanged {
           
    def apply(delegate: Int =>Unit) = {
        def helper(evt:ChangeEvent) = {
        	delegate(evt.getSource.asInstanceOf[JSlider].getValue)
        }
        ('stateChanged -> helper _)
    }
}
